# import random
from random import randint

# 1.玩家出拳
player = int(input('请输入您的出拳信心（石头-1，剪刀-2，布-3）：'))
# 2.电脑随机出拳
computer = randint(1, 3)
# 3.比较输赢
if (player == 1 and computer == 2) or (player == 2 and computer == 3) or (player == 3 and computer == 1):
    print('恭喜你赢啦')
elif player == computer:
    print('平局')
else:
    print('电脑获胜')
